# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-vernee-k506
pkgdesc="Vernee Thor"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-vernee-k506 mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="SoC firmware (WiFi, BT, GPS, Modem, FM)"
	depends="firmware-vernee-k506"
	mkdir "$subpkgdir"
}

sha512sums="
9918435ef9e9a8905b088c814de161fb6a0f68bca8c017ceea568a8d1c4133bfb865595fd365db1b04c1ee896e2b4451ecf6eb209148257757089fd492667f7b  deviceinfo
50d6784e6af1dce2e6ba18993f5c50ba88fc8a6521bfe15667dd5beddb4c948f59bb800e18b977fb86c93c37105010ce6c20f88405e73a03449ee3226aa14466  initfs-hook.sh
"
